home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / termutil.0 / termutil / termutils-2.0 / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-12-01  |  5.9 KB  |  228 lines

  1. # Makefile.in generated automatically by automake from Makefile.am.
  2. # Copyright (C) 1994 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. srcdir = @srcdir@
  21. top_srcdir = @top_srcdir@
  22. VPATH = @srcdir@
  23. prefix = @prefix@
  24. exec_prefix = @exec_prefix@
  25.  
  26. bindir = $(exec_prefix)/bin
  27. sbindir = $(exec_prefix)/sbin
  28. libexecdir = $(exec_prefix)/libexec
  29. datadir = $(prefix)/share
  30. sysconfdir = $(prefix)/etc
  31. sharedstatedir = $(prefix)/com
  32. localstatedir = $(prefix)/var
  33. libdir = $(exec_prefix)/lib
  34. infodir = $(prefix)/info
  35. mandir = $(prefix)/man
  36. includedir = $(prefix)/include
  37. oldincludedir = /usr/include
  38.  
  39. INSTALL = @INSTALL@
  40. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  41. INSTALL_DATA = @INSTALL_DATA@
  42. transform = @program_transform_name@
  43.  
  44. ALL = ${LIBFILES} ${PROGRAMS} ${LIBPROGRAMS} ${SCRIPTS} ${LIBSCRIPTS}
  45. CC = @CC@
  46. LEX = @LEX@
  47. YACC = @YACC@
  48. ANSI2KNR = ./ansi2knr
  49.  
  50. DEFS = @DEFS@
  51. CPPFLAGS = @CPPFLAGS@
  52. CFLAGS = @CFLAGS@
  53. LDFLAGS = @LDFLAGS@
  54. LIBS = @LIBS@
  55.  
  56. tput_OBJECTS = tput.o conversions.o
  57. tabs_OBJECTS = tabs.o fspec.o
  58. util_OBJECTS = version.o error.o xmalloc.o tcutil.o fgetline.o     getopt.o getopt1.o termcap.o tparam.o 
  59. LIBFILES =  libutil.a
  60. AR = ar
  61. RANLIB = @RANLIB@
  62. ALLOCA = @ALLOCA@
  63. LIBOBJS = @LIBOBJS@
  64.  
  65. MAKEINFO = makeinfo
  66. TEXI2DVI = texi2dvi
  67.  
  68. TEXFILES = *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.log *.pg *.toc *.tp *.vr
  69.  
  70. INFOS = tput.info*
  71. INFO_DEPS = tput.info
  72. DVIS = tput.dvi tabs.dvi
  73. SOURCES =  ${tput_SOURCES} ${tabs_SOURCES} ${util_SOURCES}
  74. DIST_CONF = Makefile.am Makefile.in README INSTALL NEWS \
  75.     configure configure.in ${ACLOCAL} ${ACCONFIG} ${CONFIG_TOP} \
  76.     ${CONFIG_BOT} mkinstalldirs
  77. DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
  78.  
  79. PROGRAMS = tput tabs
  80. LIBRARIES = util
  81. TEXINFOS = tput.texi
  82.  
  83. util_SOURCES = version.c error.c xmalloc.c tcutil.c fgetline.c \
  84.     getopt.c getopt1.c termcap.c tparam.c $(util_OPT_SOURCES)
  85. util_OPT_SOURCES = bsearch.c
  86. tput_SOURCES = tput.c conversions.c
  87. tabs_SOURCES = tabs.c fspec.c
  88.  
  89. HEADERS = tput.h tabs.h tcutil.h getopt.h termcap.h
  90. DIST_OTHER = COPYING ChangeLog install-sh texinfo.tex \
  91.     $(HEADERS) fspec.def fspec.sh config.h.in
  92.  
  93. INCLUDES = -I$(srcdir) -I.
  94.  
  95. LDADD = libutil.a
  96. CLEANFILES = fspec.c fspec.ct
  97.  
  98. all:: ${ALL}
  99.  
  100. .c.o:
  101.     $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $<
  102.  
  103. install:: install-programs
  104.  
  105. install-programs: $(PROGRAMS) $(SCRIPTS)
  106.     $(top_srcdir)/mkinstalldirs $(bindir)
  107.     for p in $(PROGRAMS) $(SCRIPTS); do \
  108.       $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
  109.     done
  110.  
  111. uninstall:: uninstall-programs
  112.  
  113. uninstall-programs:
  114.     for p in $(PROGRAMS) $(SCRIPTS); do \
  115.       rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
  116.     done
  117.  
  118. tput: $(tput_OBJECTS)
  119.     $(CC) -o $@ $(tput_OBJECTS) $(LDADD) $(LDFLAGS) $(LIBS)
  120.  
  121. tabs: $(tabs_OBJECTS)
  122.     $(CC) -o $@ $(tabs_OBJECTS) $(LDADD) $(LDFLAGS) $(LIBS)
  123.  
  124. install:: install-libraries
  125.  
  126. install-libraries: $(LIBFILES)
  127.  
  128. uninstall:: uninstall-libraries
  129.  
  130. uninstall-libraries:
  131.  
  132. libutil.a: $(util_OBJECTS) @LIBOBJS@ @ALLOCA@
  133.     rm -f libutil.a
  134.     $(AR) cru libutil.a $(util_OBJECTS) @LIBOBJS@ @ALLOCA@
  135.     $(RANLIB) libutil.a
  136.  
  137. .SUFFIXES: .texi .info .dvi
  138.  
  139. .texi.info:
  140.     $(MAKEINFO) -I$(srcdir) $<
  141.  
  142. .texi.dvi:
  143.     TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
  144.  
  145. info:: $(INFO_DEPS)
  146.  
  147. dvi:: $(DVIS)
  148.  
  149. install:: install-info
  150.  
  151. install-info: $(INFO_DEPS)
  152.     $(top_srcdir)/mkinstalldirs $(infodir)
  153.     cd $(srcdir); for file in *.info*; do \
  154.       $(INSTALL_DATA) $$file $(infodir)/$$file; \
  155.     done
  156.  
  157. uninstall:: uninstall-info
  158.  
  159. uninstall-info:
  160.     cd $(srcdir); for file in *.info*; do \
  161.       rm -f $(infodir)/$$file; \
  162.     done
  163.  
  164. mostlyclean:
  165.     rm -f *.o core
  166.  
  167. clean: mostlyclean
  168.     rm -f $(PROGRAMS) $(LIBPROGRAMS) $(LIBFILES) $(TEXFILES) $(CLEANFILES)
  169.  
  170. distclean: clean
  171.     rm -f Makefile *.tab.c $(DISTCLEANFILES)
  172.     rm -f config.cache config.log config.status ${CONFIG_HEADER} stamp-h
  173.  
  174. maintainer-clean:: distclean
  175. maintainer-clean::
  176.     @echo "This command is intended for maintainers to use;"
  177.     @echo "rebuilding the deleted files requires makeinfo."
  178.     rm -f TAGS $(INFOS)
  179.  
  180. # For an explanation of the following Makefile rules, see node
  181. # `Automatic Remaking' in GNU Autoconf documentation.
  182. Makefile: Makefile.in config.status
  183.     CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
  184. config.status: configure
  185.     ./config.status --recheck
  186. ${srcdir}/configure: configure.in ${ACLOCAL}
  187.     cd $(srcdir); autoconf
  188.  
  189. dist: $(DIST_FILES) $(DIST_DIRS) distname
  190.     rm -rf `cat distname`; mkdir `cat distname`
  191.     @for file in $(DIST_FILES); do \
  192.       echo linking $$file; \
  193.       ln $(srcdir)/$$file `cat distname`/$$file || \
  194.         { echo copying $$file instead; cp -p $(srcdir)/$$file `cat distname`/$$file;}; \
  195.     done
  196.     chmod -R a+r `cat distname`
  197.     tar -chozf `cat distname`.tar.gz `cat distname`
  198.     rm -rf `cat distname` distname
  199.  
  200. check dvi info install uninstall::
  201.  
  202. tags:: TAGS
  203.  
  204. TAGS::
  205.     cd $(srcdir); etags $(SOURCES)
  206.  
  207. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  208. # Otherwise a system limit (for SysV at least) may be exceeded.
  209. .NOEXPORT:
  210.  
  211. $(PROGRAMS): libutil.a
  212.  
  213. fspec.c: fspec.sh fspec.def
  214.     rm -f $@ $@t
  215.     /bin/sh $(srcdir)/fspec.sh $(srcdir)/fspec.def > $@t
  216.     mv $@t $@
  217.  
  218. conversions.o: tput.h
  219. fspec.o: tabs.h
  220. getopt.o: getopt.h
  221. getopt1.o: getopt.h
  222. tabs.o: termcap.h getopt.h tcutil.h tabs.h
  223. tcutil.o: tcutil.h termcap.h
  224. tput.o: termcap.h getopt.h tcutil.h tput.h
  225.  
  226. distname:
  227.     echo termutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > $@
  228.